package cn.hyh.core.service.ServiceInterface;

import cn.hyh.core.pojo.Content;
import cn.hyh.core.vo.BlogInfoModel;
import cn.hyh.core.vo.BlogPageDTO;
import cn.hyh.core.vo.PageModel;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @auther :hyh
 * @desc :
 * @date :2019/7/22
 */
public interface BlogService {
    Map<String, Object> selectPage(PageModel pageModel);

    String HandleUploadImg(MultipartFile file, HttpServletRequest request);

    void writeBlog(BlogInfoModel model);

    List<Map<String,Object>> AsyncSerach(String queryString);

    BlogPageDTO getArticleDetail(int id);

    List<Map<String, Object>> initCountData(int id);

    boolean thumbUp(int id);

    Map<String, Content> previousAndNext(int id);
}
